using UnityEngine;

public class ButContolRotateCar : MonoBehaviour
{
	public bool butRotateLeft;

	private void OnPress(bool isPressed)
	{
		if (isPressed)
		{
			if (butRotateLeft)
			{
				GameController.instance.CarTurnLeft();
			}
			else
			{
				GameController.instance.CarTurnRight();
			}
		}
		else
		{
			GameController.instance.CarTurnForward();
		}
	}
}
